
#if defined(WIN32) || defined(WIN64)
#pragma unmanaged
#endif

#include <Liberty3D/Engine/Behaviour.h>

using namespace Liberty::Engine;

Behaviour::Behaviour() : _enabled(true) {
}

void Behaviour::setEnabled(bool enabled) {
    if (_enabled != enabled) {
        _enabled = enabled;

        if (enabled) {
            onEnable();
        }
        else {
            onDisable();
        }
    }
}

void Behaviour::onEnable() {
}

void Behaviour::onDisable() {
}
